long inpos = 0L, outpos = 0L; /* file position trackers */
int writebuf(void);
void main(int argc, char *argv[])
{
short err = 0,
plast, ptr = 1, pnext; /* pointers to characters in lookahead buffer */
signed char lk[3]; /* lookahead buffer */
if (argc != 3 && argc != 2) {
fputs("StripHR by Unicorn Research Corporation\nIntelligently strip unwanted hard returns from text files\nwhile retaining paragraph formatting.\n\nUsage: StripHR infile [outfile]\n\n", stdout);
fputs("If outfile is omitted, then infile will be replaced.\nA hard return is kept if it is followed by any white space (e.g.\ntabs, spaces, returns) or if preceded by another hard return.\n", stdout);
fputs("The end-of-line code in the text file must be compatible with your\noperating system -- use StripCR / AddCR as necessary.\n", stdout);